package com.xinzhidi.web.balancecontrol.domain.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author cx
 */
@ApiModel(value = "锁定/解锁参数")
@Data
@EqualsAndHashCode(callSuper = false)
public class LockPo {

    @ApiModelProperty(value = "类型（0：小区  1：楼栋  2：单元 3：住户）")
    @NotBlank(message = "类型不能为空")
    private String type;

    @ApiModelProperty(value = "主键id：后台根据type判断是小区id、楼栋id、单元id、住户id")
    @NotNull(message = "主键id不能为空")
    private Long id;

    @ApiModelProperty(value = "锁定状态（0：解锁  1：锁定）")
    @NotNull(message = "锁定状态不能为空")
    private Integer lockStatus;


}
